<%--
    Document   : logout
    Created on : 6 Apr, 2010, 10:44:28 PM
    Author     : ankur
--%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" %>
<%

        //the user id is set to null and the user is redirected to the login page
        session.setAttribute("suid", null);
        session.setAttribute("username", null);
        session.setAttribute("password", null);
        session.setAttribute("role", null);
        session.invalidate();
        response.sendRedirect("login.jsp");

%>